package com.ky.course.controller;


import com.ky.common.vo.R;
import com.ky.course.service.OpenCourseVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 公开课视频表 前端控制器
 * </p>
 *
 * @author zpa
 * @since 2024-06-19
 */
@RestController
@RequestMapping("/course/open-course-video")
public class OpenCourseVideoController {

    @Autowired
    private OpenCourseVideoService openCourseVideoService;

    /**
     * 由课程id获取课程的视频信息
     * @param courseId
     * @return
     */
    @GetMapping("/getVideoList")
    public R getVideoList(@RequestParam("courseId") Integer courseId){
       return openCourseVideoService.getVideoList(courseId);
    }
}

